﻿using EBA.Collections;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EBA.Reporting
{
    /// <summary>
    /// 报表数据源
    /// </summary>
    public interface IReportData
    {
        /// <summary>
        /// 根据表索引获取数据表
        /// </summary>
        /// <param name="tableIndex">表索引</param>
        /// <returns></returns>
        IReportDataTable this[int tableIndex] { get; }
        IReportDataTable this[string tableName] { get; }

        /// <summary>
        /// 数据表集合
        /// </summary>
        IReadonlyList<IReportDataTable> Tables { get; }
    }
}
